package com.educatioin.manage.constant;

/**
 * Update by zhangyin on 2018/4/6.
 */
public interface WeChatApiConstant {

    //公众号信息
    public static final String TOKEN = "study";
    public static final String APP_ID = "wx901f02bac5476a60";
    public static final String APP_SECRET = "c848343963693757ae9ec1abb274f985";

    //微信支付信息
    public static final String MCH_ID = "1501617341";

    //微信支付key
    public static final String MCH_KEY = "rosseduinf1234567890abcdefghijkl";

    //微信支付回调地址
    public final static String NOTIFY_URI = "http://www.rosseduinf.com/education/api/order/payresult";

    //微信支付交易类型
    public final static String TRADE_TYPE = "JSAPI"; //公众号支付

    public final static String TOKEN_CACHE_KEY = TOKEN + APP_ID + "TOKEN";

    public final static String JS_API_TICKET_CACHE_KEY = TOKEN + APP_ID + "TICKET";

    //获取code时用于校验的state
    public final static String CODE_STATE = "rossedu";

    //静默获得openId
    public final static String BASE_SCOPE = "snsapi_base";

    //可以换取用户信息，需要用户授权
    public final static String USERINFO_SCOPE = "snsapi_userinfo ";

}
